package com.klikmee.sms.core.base.communicator.vip;

import com.klikmee.sms.core.base.resolvers.AbstractServiceResolver;
import com.klikmee.sms.core.model.IncomingMessage;
import com.klikmee.sms.core.model.Service;

/**
 * Vip message 2 service resolver impl.
 * Used to match {@link IncomingMessage#getToNumber()} to service defined vip short code regex.
 * @author makcro
 *
 */
public class MessageToServiceResolverImpl extends AbstractServiceResolver {

	@Override
	protected boolean matchProviersShortCode( IncomingMessage incomingMessage, Service service ) {
		return incomingMessage.getToNumber().matches( service.getVIPShortCode() );
	}

}
